Skip to main content

All Questions

1vote
1answer
294views

C++ arbitrary base convertor

This is my second C++ program. Again, I wrote it all by myself. I only started learning C++ yesterday. The concept of the program is simple; it should read input from ...
Ξένη Γήινος's user avatar
1vote
0answers
87views

Python script that turns a gigantic text file into an IP geolocation database

I have written a Python script that turns a gigantic text file into a SQLite3 database. The text file is truly gigantic, it is 133MiB or 140,371,572 bytes in size, and contains 140,371,572 characters ...
Ξένη Γήινος's user avatar
3votes
1answer
474views

Python script copying specific table data from multiple docx files into an XLS file

The code copies the second column from the right of all the docx files' tables from the folder where the py file is saved, and does some editing on the content in specific cases. The problem that it ...
Domi Szécskai's user avatar
5votes
3answers
749views

Number System Conversions with strtol

Description The code uses strtol() to convert text that represents a value in a given base into an integer. It takes three arguments from the command line, ...
Madagascar's user avatar
1vote
1answer
1kviews

Python IPv6 verifier, parser and converter

This is a simple Python 3 program that verifies whether a string is a valid IPv6 address or not, parses IPv6 address to its hexadecimal and decimal values, and converts an integer to IPv6 format. I am ...
Ξένη Γήινος's user avatar
3votes
1answer
1kviews

PowerShell script binary-decimal-hexadecimal-ipv4 convertor

This is a fully functional PowerShell script I wrote not long ago that converts data (numerical data) among 4 data formats: binary, decimal, hexadecimal and ipv4. It supports 12 conversions, it can ...
Ξένη Γήινος's user avatar
3votes
1answer
110views

Integer to Roman Numeral conversion

As a little standard exercise, I wrote an integer to roman numerals converter in F03. The result looks already neat enough, for my standards, but I wonder whether it could be made snappier without ...
Luca Argenti's user avatar
2votes
1answer
62views

Input any time, output timezones that are currently that time

I made a program that will take in a time and a weekday, and return which parts of the world are at times closest to the one specified. Part of the program focuses on extracting a date and country out ...
Chocolate's user avatar
3votes
2answers
299views

Implementation of itoa

...
Edenia's user avatar
  • 1,578
1vote
1answer
73views

Image type convertion

So I have a piece a code that, altough it does what is expected, it doesn't seam very performant to me. I just wanted to know if there's a better way to do this or if my code is alright as it is. The ...
Erick Santander's user avatar
2votes
4answers
529views

Taking 2 command line inputs and verifying that they are integers, within the correct range of values

I'm taking 2 command line inputs, which have to be integers between 2 and 1,000,000. These two values are then passed into the getPrimes function, which is just a ...
Data's user avatar
  • 153
2votes
0answers
1kviews

Converting [UInt32] -> [UInt8] -> [[UInt8]]

I am trying to speed up my current implementation of a function that converts [UInt32] to a [UInt8] which in turn is split up ...
p0ppy's user avatar
1vote
1answer
2kviews

Construct: bytes and bits conversion

This code is part of Construct library that converts between byte and bit representations. ...
ArekBulski's user avatar
1vote
2answers
2kviews

C++ XOR Function

This XOR function is costing my program too much time (specifically the conversions.) How can this code be made faster? ...
54 69 6D's user avatar
5votes
2answers
1kviews

Time conversion program optimization

I have just finished working on a problem on hackerrank dealing with time conversion in C++. I'm still fairly new to programming as I only have a few semesters of programming classes under my belt ...
Callat's user avatar

153050per page
close